package club.ruanx.movie.entity.nosql;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @author 阮胜
 * @date 2018/10/31 9:21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserLoginLog {
    @Id
    private String id;

    private String userId;

    private String username;

    private String ip;

    @Temporal(TemporalType.TIMESTAMP)
    @UpdateTimestamp
    private String operateTime;
}
